Skip to main content

IncreasedBlockReward

the Reduced Penalty Reward NFT provides the user a reduced penalty in the event of a premature withdraw on the position in question. It comes with a reductionAmount for a specific token (such as USDT), and when applied to a pool containing that token, will provide an increased refund, up to that reduction amount. Is only consumed in the event of a premature withdraw, so it can make a good insurance policy on that token

Globals

Note this contains internal vars as well due to a bug in the docgen procedure

VarType
diamondaddress

Modifiers

onlyDiamond

No description

Declaration

  modifier onlyDiamond

Functions

constructor

No description

Declaration

  function constructor(
) public ERC1155PresetMinterPauser

Modifiers:

Modifier
ERC1155PresetMinterPauser

mint

Mint is exposed to onlyDiamond to provide the creation of rewards

Declaration

  function mint(
address to,
uint256 id,
uint256 amount,
bytes data
) public onlyDiamond

Modifiers:

Modifier
onlyDiamond

Args:

ArgTypeDescription
toaddressaddress of the user receiving the reward
iduint256the id of the rewaerd being minted
amountuint256the amount of nft's being minted (usually 1)
databytesmetadata of the NFT,